package com.tiancheng.trade.payment.mapper;

import com.tiancheng.trade.payment.bo.SettleDistErrorBO;
import com.tiancheng.trade.payment.model.SettleDistError;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 分账异常重新抽佣mapper
 * @author likailun
 * @date 2022-12-02 17:01
 */
@Repository
public interface SettleDistErrorMapper extends TYBaseMapper<SettleDistError> {
    /**
     * 查询需要重新抽佣的清分记录
     * 条件：源记录分账成功&抽佣失败，且未再次抽佣成功
     * @return
     */
    List<SettleDistErrorBO> queryDateSettle();

    void saveBatch(@Param("list") List<SettleDistError> list);

    void updateBatch(@Param("list") List<SettleDistError> list);
}
